﻿<UserControl   x:Class="TelecoSystems.Modules.Administration.Views.UsersView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:df="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:cmd="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation"
    mc:Ignorable="d"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    d:DesignHeight="600" d:DesignWidth="1000">
    <controlsToolkit:BusyIndicator x:Name="ModuleBusyIndicator" BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy}" Foreground="Black" DisplayAfter="0:0:0.0" FontSize="11" OverlayStyle="{StaticResource ActivityOverlayStyle}" RenderTransformOrigin="0.5,0.5">
        <Grid x:Name="LayoutRoot" Background="White">
            <ScrollViewer>
<Grid>
 <Grid.ColumnDefinitions>
 <ColumnDefinition Width="*" />
 <ColumnDefinition Width="*" />
 </Grid.ColumnDefinitions>
 <Grid.RowDefinitions>
 <RowDefinition Height="*" />
 <RowDefinition Height="*" />
 </Grid.RowDefinitions>

<data:DataGrid x:Name="DataGridUsers" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding Users, Mode=OneWay}" SelectedItem="{Binding UserDetail, Mode=TwoWay}" AutoGenerateColumns="True" Background="#FF121212" GridLinesVisibility="Horizontal" BorderBrush="#FF434546" />
<df:DataForm Grid.Column="1" Grid.Row="1" DataContext="{Binding ElementName=DataGridUsers}" ItemsSource="{Binding ItemsSource, Mode=OneWay}" CurrentItem="{Binding SelectedItem, Mode=TwoWay}" AutoCommit="True" AutoEdit="True" CommandButtonsVisibility="All" AutoGenerateFields="True" />
                    <Button Grid.Row="0" Grid.Column="1" Content="Submit" cmd:Click.Command="{Binding SubmitChangesCommand}" />
                </Grid>
</ScrollViewer>


        </Grid>
    </controlsToolkit:BusyIndicator>
</UserControl>
